package springweb.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;
//import org.apache.commons.logging.Log;



public class IndexController extends AbstractController {
	//private static Log log = null;
	private String greeting;
	
	public void setGreeting(String greeting){
		this.greeting = greeting;
	}

	protected ModelAndView handleRequestInternal(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {
		System.out.println("IndexController : handleRequestInternal ");
		return new ModelAndView("index", "message", greeting);	
	}
}
